import java.util.Scanner;

public class ch01 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入五个数");
        int[] c = new int[5];
        int sum = 0;
        for (int i =0;i < c.length;i++){
            System.out.println("请输入第" +(i+1) + "个数");
            c[i] = input.nextInt();
        }
        for (int i : c) {
            sum = sum + i;
        }
        System.out.println("和为" + sum);
    }
}